//
//  AuthorCell.m
//  AloTruyen
//
//  Created by vominhthong on 10/11/14.
//  Copyright (c) 2014 Khoai Nguyen Minh. All rights reserved.
//

#import "AuthorCell.h"

@implementation AuthorCell
-(void)setAuthorModal:(AuthorModal *)authorModal{
    self.lbNameAuthor.text = authorModal.nameAuthor;
    [self.avatarAuthor setImageWithURL:[NSURL URLWithString:authorModal.avatarURL]];
    [self.bookImage setImageWithURL:[NSURL URLWithString:authorModal.bookImage]];
    self.lbDownloadCoun.text = authorModal.downloadCounts;
    self.lbList.text = authorModal.bookCount;
    self.avatarAuthor.layer.cornerRadius = self.avatarAuthor.frame.size.width/2;
    self.avatarAuthor.clipsToBounds = YES;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
